package com.nb82.entity;

import com.nb82.util.AcUtil;

import android.app.Activity;
import android.app.Application;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;

public abstract class BaseActivity extends Activity{
	public  void init(Object object){};
	public  void freash(Object object){};
	@Override
	public void startActivity(Intent intent) {
		Log.i("startActivity()  == >", "pkg:" + intent.getPackage() + "  class:"+intent.getClass().getName());
		super.startActivity(intent);
	}
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		AcUtil.add(this);
		AcUtil.setAc(this);
	}
	@Override
	protected void onDestroy() {
		AcUtil.remove(this);
		super.onDestroy();
	}
	@Override
	protected void onResume() {
		super.onResume();
		AcUtil.setAc(this);
	}
	@Override
	protected void onPause() {
		super.onPause();
		AcUtil.setAc(null);
	}
	
}
